/*
 * @Description:
 * @Author: zheng yiliang
 * @Date: 2021-03-28 02:07:21
 * @LastEditTime: 2021-06-11 11:58:28
 * @LastEditors: zheng yiliang
 */
import request from '@/utils/request'

// 获取公钥
export function getPublicKey (data) {
  return request({
    url: '/getPublicKey',
    method: 'post',
    data
  })
}

export function init (query) {
  return request({
    url: '/init',
    method: 'get',
    params: query
  })
}

export function qqUsers (query) {
  return request({
    url: '/qqUsers',
    method: 'get',
    params: query
  })
}

export function visiLog (query) {
  return request({
    url: '/visiLog',
    method: 'get',
    params: query
  })
}


export function getBlogCountByBlogSort (query) {
  return request({
    url: '/getBlogCountByBlogSort',
    method: 'get',
    params: query
  })
}

export function getBlogCountByTag (query) {
  return request({
    url: '/getBlogCountByTag',
    method: 'get',
    params: query
  })
}

export function changePwd (params) {
  return request({
    url: '/changePwd',
    method: 'post',
    data: params
  })
}
